﻿<phone:PhoneApplicationPage 
    x:Class="PNut_Project_Lin.CheckCarPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <StackPanel x:Name="LayoutRoot">
        <StackPanel.Background>
            <ImageBrush Stretch="Fill" ImageSource="/picture/auto_repair_technician.jpg" Opacity="0.28"/>
        </StackPanel.Background>


        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel  Margin="12,17,0,28">
            <TextBlock FontFamily="/PNut_Project_Lin;component/Fonts/Fonts.zip#TH Sarabun New" Text="คู่มือเช็ครถก่อนเดินทาง"  Style="{StaticResource PhoneTextTitle1Style}" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <ListBox x:Name="CheckCarListBox" Height="625"  ItemsSource="{Binding}" SelectionChanged="CheckCarListBox_SelectionChanged">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal" Margin="0,5,0,5">
                        <Image Margin="30,0,0,0"  Width="120" Source="{Binding img}" />
                        <TextBlock Margin="15,0,0,0" Text="{Binding Name}" FontFamily="/PNut_Project_Lin;component/Fonts/Fonts.zip#TH Sarabun New" FontSize="36" VerticalAlignment="Center" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </StackPanel>

</phone:PhoneApplicationPage>
